//商品分类信息
import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";
//分页
export function productTypePage(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/productType/page`,
    method: "get",
    params
  });
}
//创建
export function productTypeCreate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/productType/create`,
    method: "post",
    data
  });
}
//修改
export function productTypeUpdate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/productType/update`,
    method: "post",
    data
  });
}
//修改会员标签信息状态
export function productTypeChangeStatus(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/productType/changeStatus`,
    method: "post",
    data
  });
}
//删除
export function productTypeDelete(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/productType/delete`,
    method: "post",
    data
  });
}
//是否显示再首页
export function productTypeSetIsHide(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/productType/setIsHide`,
    method: "post",
    data
  });
}
//详情
export function productTypeDetail(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/productType/detail`,
    method: "get",
    params
  });
}
//list集合
export function productTypeList(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/productType/list`,
    method: "get",
    params
  });
}
